package com.ruoyi.interview.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.*;
import java.util.Date;

/**
 * 面试信息表 interview_info
 * BaseEntity: 用于封装公共字段
 * @author xuqinglong
 */
public class IntervInfoVo extends BaseEntity {
    /**序列化*/
    private static final long serialVersionUID = 1L;

    /** 面试id */
    private Long id;

    /** 面试者姓名 */
    @NotBlank(message = "面试者姓名不能为空")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5.·\\u36c3\\u4DAE]{2,}$", message = "姓名格式不正确")
    @Excel(name = "姓名")
    private String interviewee;

    /** 求职岗位 */
    @Excel(name = "岗位")
    private String pName;

    /** 面试方式 */
    @Excel(name = "面试方式")
    private String way;

    /** 身份id 0未选择 1校招 2社招 */
    private Long iId;

    /** 状态id 0通过 1进行中 2未通过 3未处理 */
    private Integer status;

    /** 电话 */
    @Excel(name = "电话")
    @Pattern(regexp = "^[\\d\\*]{7,12}$", message = "联系电话输入有误")
    @NotBlank(message = "联系电话不能为空")
    private String phone;

    /** 面试时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "面试时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userDate;

    /** 学校 */
    @Excel(name = "学校")
    private String school;

    /** 反馈 */
    @Excel(name = "反馈")
    private String feedback;

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getFeedback() {
        return feedback;
    }

    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getInterviewee() {
        return interviewee;
    }

    public void setInterviewee(String interviewee) {
        System.out.printf("interviewee被调用！");
        this.interviewee = interviewee;
    }

    public String getpName() {
        return pName;
    }


     public void setPName(String pName) {
         System.out.printf("PName被调用！");
        this.pName = pName;
    }


    public String getWay() {
        return way;
    }

    public void setWay(String way) {
        this.way = way;
    }

    public Long getiId() {
        return iId;
    }

    public void setiId(Long iId) {
        this.iId = iId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getUserDate() {
        return userDate;
    }

    public void setUserDate(Date userDate) {
        this.userDate = userDate;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
}
